package com.voltmao.persistent.mapper;

import org.apache.ibatis.annotations.Param;
import com.voltmao.persistent.model.DocApplyAudit;
import com.voltmao.persistent.model.DocApplyAuditCriteria;

import java.util.List;
import java.util.Map;

public interface DocApplyAuditMapper {
    int countByExample(DocApplyAuditCriteria example);

    int deleteByExample(DocApplyAuditCriteria example);

    int deleteByPrimaryKey(String dataId);

    int insert(DocApplyAudit record);

    int insertSelective(DocApplyAudit record);

    List<DocApplyAudit> selectByExample(DocApplyAuditCriteria example);

    DocApplyAudit selectByPrimaryKey(String dataId);

    int updateByExampleSelective(@Param("record") DocApplyAudit record, @Param("example") DocApplyAuditCriteria example);

    int updateByExample(@Param("record") DocApplyAudit record, @Param("example") DocApplyAuditCriteria example);

    int updateByPrimaryKeySelective(DocApplyAudit record);

    int updateByPrimaryKey(DocApplyAudit record);

    DocApplyAudit selectByExampleForOne(DocApplyAuditCriteria example);

    Map<String, Object> selectMapByPrimaryKey(String dataId);

    Map<String, Object> selectMapByExampleForOne(DocApplyAuditCriteria example);

    List<Map<String, Object>> selectMapByExample(DocApplyAuditCriteria example);

//    zdy
    DocApplyAudit selectByapplyId(@Param("applyId") String applyId);
}